package com.xhdx.serialize;

import java.io.Serializable;

public class Student implements Serializable{
    /**
     * 序列化ID
     */
    private static final long serialVersionUID = 2L;
    private String name;   //姓名
    private int age;       //年龄
    private String sex;  //性别
    private transient Float score;  //分数
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public Float getScore() {
        return score;
    }
    public void setScore(Float score) {
        this.score = score;
    }
    @Override
    public String toString() {
        return "Student [name=" + name + ", age=" + age+ ", score=" + score + ", sex=" + sex + "]";
    }
}
